﻿@model System.Collections.Generic.IEnumerable<ExampleWebApplication.Models.Task>

<!DOCTYPE html>

<html>
    <head>
        <title>title</title>
    </head>
    <body>
        <div>
            <h3>Task for today</h3>
            <br/>
            @if (Model != null && Model.Any())
            {
                <ul>
                    @foreach (ExampleWebApplication.Models.Task item in Model)
                    {
                        <li>@item.StarTime.ToString(@"hh\:mm") - @item.EndTime.ToString(@"hh\:mm") @item.Description</li>
                    }
                </ul>
            }
            else
            {
                <h4>HAVE FUN!!</h4>
            }
        </div>
    </body>
</html>